package com.gupao.pattern.factory.abstr;

import com.gupao.pattern.factory.method.IPhoneFactory;
import com.gupao.pattern.factory.method.VivoFactory;
import com.gupao.pattern.factory.simple.Iphone;
import com.gupao.pattern.factory.simple.Vivo;

public class DefaultFactory extends AbstractPhoneFactory {
    public Vivo getVivo() {
        return new VivoFactory().getPhoen();
    }

    public Iphone getIphone() {
        return new IPhoneFactory().getPhoen();
    }
}
